package com.cwl.pattern.装饰模式;

/**
 * @program: pattern
 * @description: 操作类B - 对基本操作进行装饰
 * @author: ChenWenLong
 * @create: 2019-06-25 17:37
 **/
public class ConcreteDecoratorB extends Decorator {

    @Override
    public void opeartion() {
        super.opeartion();
        AddedBehavior();
        System.out.println("具体装饰对象B的操作");
    }

    private void AddedBehavior(){
        System.out.println("装饰B独有的方法");
    }

}
